package com.healthcloud.service.impl;

import com.healthcloud.dao.LogMapper;
import com.healthcloud.entity.LogEntity;
import com.healthcloud.service.LogService;
import com.healthcloud.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by houxianghua on 2015/7/23.
 */
@Service
@Transactional
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public List<LogEntity> search(LogEntity entity, PageParam pageParam) {
        return logMapper.search(entity, pageParam);
    }

    @Override
    public int count(LogEntity entity) {
        return logMapper.count(entity);
    }

}
